package ks.server.controllers.requests;

import ks.framework.common.Message;
import ks.framework.communicator.Communicator;
import ks.server.ipc.Listener;

public class NackRequest {
	private Communicator com;
	
	public NackRequest(Communicator c) {
		this.com = c;
	}
	
	public boolean send(Message m, int severity, String text, String recipient) {
		Message r = Listener.nack(m, severity, text);
		r.setRecipient(recipient);
		return com.distribute(r);
	}
}